package com.spring.eurekapost;
import com.netflix.ribbon.proxy.annotation.Hystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "eureka-client",fallback = EurekaClientServicFallBack.class)
public interface EurekaClientService {

    @RequestMapping("/getUserList")
    public List<User> getUserList();
}

